# from django.db import models
#
#
# class Menu(models.Model):
#     title = models.CharField("菜单名称", max_length=32)
#     icon = models.CharField("图标", max_length=64, blank=True)
#     weight = models.IntegerField("排序权重", default=0)
#     ident = models.CharField("唯一标识", max_length=32, unique=True)
#
#     class Meta:
#         ordering = ['-weight']
#
#
# class BusinessPermission(models.Model):
#     menu = models.ForeignKey(Menu, on_delete=models.CASCADE, null=True, blank=True)
#     parent = models.ForeignKey('self', on_delete=models.CASCADE, null=True, blank=True)
#     title = models.CharField("权限名称", max_length=32)
#     code = models.CharField("权限代码", max_length=64, unique=True)
#     path = models.CharField("完整路径", max_length=256)
#     component = models.CharField("前端组件", max_length=128, blank=True)
#     is_menu = models.BooleanField("显示菜单", default=False)
#
#     def __str__(self):
#         return f"{self.code}:{self.title}"
